import request from "@/utils/request";

// 查询全局参数设置列表
export function listSet(query) {
  return request({
    url: "/parameterSet/list",
    method: "get",
    params: query,
  });
}

// 查询全局参数设置详细
export function getSet(id) {
  return request({
    url: "/parameterSet/" + id,
    method: "get",
  });
}

// 新增全局参数设置
export function addSet(data) {
  return request({
    url: "/parameterSet",
    method: "post",
    data: data,
  });
}

// 修改全局参数设置
export function updateSet(data) {
  return request({
    url: "/parameterSet",
    method: "put",
    data: data,
  });
}

// 删除全局参数设置
export function delSet(id) {
  return request({
    url: "/parameterSet/" + id,
    method: "delete",
  });
}
